package lab02.test05;

import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        Cube one = new Cube();      //创建一个新的对象

        System.out.println("请输入长宽高:" );

        Scanner sc = new Scanner(System.in);
        one.lengths = sc.nextInt();
        one.width = sc.nextInt();
        one.height = sc.nextInt();


        System.out.println("体积为" + one.getVolum());    //求体积
    }

}
